package com.echat.serviceapigateway.security.controller.toHtml;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by chenmohan on 2018/09/05
 *
 * @description 映射html静态资源,跳转指定的html
 */
@Controller
@RequestMapping("/admin")
public class HtmlMapping {

    @GetMapping("/login.html")
    public String toLogin(){
        return "login";
    }

    @GetMapping({"/index","/index.html","/",""})
    public String index(){
        return "index0";
    }

    @GetMapping("/userIndex.html")
    public String userIndex(){
        return "user/user";
    }

    @GetMapping("/userInfo.html")
    public String userInfo(){
        return "user/userInfo";
    }

    @GetMapping("/interfaceIndex.html")
    public String interfaceIndex(){
        return "interface/interface";
    }

    @GetMapping("/interfaceAdd.html")
    public String interfaceAdd(){
        return "interface/interfaceAdd";
    }

    @GetMapping("/interfaceInfo.html")
    public String interfaceInfo(){
        return "interface/interfaceInfo";
    }

}
